import service from '@/utils/request'
import { prefix } from '../common'
export const useOrgListApi = () => {
	return service.get(prefix + '/sys/org/page')
}

export const useOrgApi = (id: Number) => {
	return service.get(prefix + '/sys/org/' + id)
}

export const useOrgNameListApi = (idList: number[]) => {
	return service.post(prefix + '/sys/org/nameList', idList)
}

export const useOrgSubmitApi = (dataForm: any) => {
	return service.post(prefix + '/sys/org', dataForm)
}
